// 首页的样式less文件
@import "common";
// @import 导入的意思  可以把一个样式文件导入到另外一个样式文件里面
// link是把一个样式文件引入到html页面里面
body{
    min-width: 320px;
    // 我们用屏幕尺寸除以我们划分的份数得到了html里面的文字大小
    // 页面元素的rem值 = 页面元素在750像素下的px值 / html里面的文字大小
    // 文字大小=750/15=50
    max-width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family: Arial, Helvetica;
    background: #f2f2f2;
}
@baseFont:50;
.search-content{
    display: flex;
    position: fixed;
    width: 15rem;
    height: (88rem / @baseFont);
    background-color: #FFc001;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    .classify{
        width: (44rem / @baseFont);
        height: (70rem / @baseFont);
        background-color: green;
        background: url(../images/classify.png) no-repeat;
        margin: (11rem / @baseFont) (25rem / @baseFont) (7rem / @baseFont) (24rem / @baseFont);
        background-size: (44rem / @baseFont) (70rem / @baseFont);
    }
    .search{
        flex: 1;
        background-color: green;
      
        input{
            outline: none;
            height: (66rem / @baseFont);
            width: 100%;
            background-color: #fff2cc;
            border-radius: (33rem / @baseFont);
            margin-top: (12rem / @baseFont);
            font-size:(25rem / @baseFont);
            padding-left: (55rem / @baseFont);
            color:#757575;
        }
    }
    .login{
        width: (75rem / @baseFont);
        height: (70rem / @baseFont);
        margin: (10rem / @baseFont);
        font-size: (25rem / @baseFont);
        text-align: center;
        line-height: (70rem / @baseFont);
        color: white;
    }
}
.banner{
    width: (750rem / @baseFont);
    height: (368rem / @baseFont);
    img {
        height: 100%;
        width: 100%;
    }
}
.ad{
    display: flex;
    a{
        flex: 1;
        img{
            width: 100%;
            height: 100%;
        }
    }
}
.nav{
    width: (750rem / @baseFont);
    a{
        width: (150rem / @baseFont);
        height: (140rem / @baseFont);
        float: left;
        text-align: center;
        img{
            display: block;
            width: (82rem / @baseFont);
            height: (82rem / @baseFont);
            margin: (10rem / @baseFont) auto (-10rem / @baseFont);
        }
        span{
            font-size: (25rem / @baseFont);
            color: #333;
        }
    }
}